package com.xmg.boot.demo.bootlesson1.user.entity.mongo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.data.mongodb.core.mapping.MongoId;

import java.util.Date;

/**
 * @Author: ma
 * @CreateTime: 2023-11-24
 * @Description: TODO
 * @Version: 1.0
 */

@Data
@ToString
@Accessors(chain = true)
public class MongoUser {
    @MongoId
    private String id;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone ="GMT+8")
    private Date birthday;
    private String name;
    private Integer age;
    private Status status;
}
